/*
 * Class4A.h
 *
 *  Created on: 2015年7月16日
 *      Author: Administrator
 */

#ifndef BCCH_CLASS4A_H_
#define BCCH_CLASS4A_H_

#include "Class4.h"
// 包含Class 4 的信息。Size: 120 bits
//<Header: bitstring(7)>
//<Class Type 4: 110>
//<Segment type: 0000>
//struct ST4A_Header{
//	//header 由classType、segment Type组成
//	//3 bit
//	unsigned char classType:3;
//	//4bits
//	unsigned char segmentType:4;
//};
//<Misc. Params Class 4>– 12 bits
//<RADIO_LINK_TIMEOUT: bitstring(8)>– Maximum value of radio link fail counter.See GMR-1 05.008 [19]
//<Spare: bitstring(4)>
struct MiscParams{
	unsigned char RADIO_LINK_TIMEOUT;
	unsigned char spare:4;
};

class Class4A :public Class4{
public:
	Class4A();
	virtual ~Class4A();
//	ST4A_Header header;
	MiscParams miscParams;
	//<OTHER_SAT_BCCH>– 11 bits
	unsigned short OTHER_SAT_BCCH:11;

	//	<ARFCN: bitstring(11)>– Range 1 - 1 087. The absence of a valid value is indicated by a pattern of "11111111111"b
	unsigned short ARFCN:11;

	//	<Spare: bitstring(90)>– 90 bits
	unsigned char spare[12];

};

#endif /* BCCH_CLASS4A_H_ */
